home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
glass
/
glass.lha
/
GLASS
/
tmc
/
makefile.tos
< prev
next >
Wrap
Makefile
|
1990-11-02
|
5KB
|
229 lines
# tm C support make file
VERSION = 4
# debugging flags
DBUG = -DSTAT
LINTDBUG = -DSTAT $(SYSCDBUGFLAGS)
LDFLAGS = $(SYSCDBUGFLAGS) -Wl-S=10000
# C compilation flags
CFLAGS = $(SYSCDBUGFLAGS) -I$(IDIR) $(DBUG) -D$(SYS)
LINTFLAGS = $(SYSLINTFLAGS) -DLINT -I$(IDIR) $(LINTDBUG) -D$(SYS)
# Some names of programs
TM = tm
LINKER = cc
TMCLIB = $(LDIR)\tmclib.lib
TMCLINTLIB = $(LDIR)\llib-ltmc.ln
LIBS = $(TMCLIB) $(CLIBLOC)
LINTLIBS = $(TMCLINTLIB)
MAKEFILE = Makefile
DOC = README CHANGES
DEMOFILES =
JUNK = tmp core makelog lltest altest testerr testout alutest llutest
TESTFILES = \
test.ds \
alokerr alokout \
altestin altest.c alspec.t alcode.ct alcode.ht \
aluokerr aluokout \
alutest.c aluspec.t alucode.ct alucode.ht \
llokerr llokout \
lltestin lltest.c llspec.t llcode.ct llcode.ht \
lluokerr lluokout \
llutest.c lluspec.t llucode.ct llucode.ht
DISTFILES = $(TMMODULES) $(TESTFILES) $(DOC) $(MAKEFILE)
TMMODULES = cal.ct cal.ht alneed.t calu.ct calu.ht aluneed.t \
cll.ct cll.ht llneed.t cllu.ct cllu.ht lluneed.t
LLUTMSRCS = llucode.c
LLUTMHDRS = llucode.h
ALUTMHDRS = alucode.h
ALUTMSRCS = alucode.c
LLUTESTOBJS = llutest.o llucode.o
ALTESTOBJS = altest.o alcode.o
ALUTESTOBJS = alutest.o alucode.o
LLUTESTSRCS = llutest.c llucode.c llucode.h
ALUTESTSRCS = alutest.c alucode.c alucode.h
OBJS = alucode.o alutest.o llucode.o llutest.o
# These sources are generated from tm templates.
TMOUT = alucode.c alucode.h llucode.c llucode.h
#++ make module local start, do NOT touch this line. ++
# Installation dependent make variables.
# This configuration is for 'duteela'.
# full path of the ESPRIT environment
ESPRITDIR = c:
# BDIR : bin directory
# IDIR : include directory
# LDIR : library directory
BDIR = $(ESPRITDIR)\bin
IDIR = $(ESPRITDIR)\include
LDIR = $(ESPRITDIR)\lib
FULLDS = $(ESPRITDIR)\ds\fullglass.ds
KERNDS = $(ESPRITDIR)\ds\kernglass.ds
NFULLDS = $(ESPRITDIR)\ds\nfullgl.ds
NKERNDS = $(ESPRITDIR)\ds\nkerngl.ds
DRAWDS = $(ESPRITDIR)\ds\draw.ds
# HOSTNAME : name of installation machine.
HOSTNAME=atariST
# SYS : name of operating system or machine type
# BSD For generic BSD systems
# HPUX For all HP-UX systems
# SUN For all SUN systems
# APOLLO For all Apollo systems
SYS = MWCST
# CLIBLOC : required C libraries
CLIBLOC =
LINTLIBLOC =
PLIBLOC =
# CBADADR : address that will cause a core-dump if read or written.
CBADADR = 0
SYSCFLAGS = -Wc-A
SYSCPROFFLAGS = -G
SYSCDBUGFLAGS = -g -Wc-A
SYSLINTFLAGS =
SYSPFLAGS =
# Collection of host dependent make rules.
### libinstall ###
# MODULE - module to install
libinstall:
cp $(MODULE) $(LDIR)\$(MODULE)
### includeinstall ###
# MODULE - module to install
includeinstall:
cp $(MODULE) $(IDIR)\$(MODULE)
### maninstall ###
# MAN - manual page to install
maninstall:
cp $(MAN) \usr\man\manl
### bininstall ###
# MODULE - module to install
bininstall:
cp $(MODULE) $(BDIR)\$(MODULE)
strip $(BDIR)\$(MODULE)
### arlibinstall ###
# MODULE - module to install
arlibinstall:
cp $(MODULE) $(LDIR)\$(MODULE)
#++ make module local end, do NOT touch this line. ++
help :
@echo " Possible make targets:"
@echo "all Create local running programs."
@echo "clean Free disk space."
@echo "distfiles List distribution files."
@echo "install Install relevant files."
@echo "setup Adapt sources to local situation."
@echo "test Run tests."
#
all: llutest alutest
# Add rules for the programs themselves here.
test : llutestrun alutestrun
alutest: $(ALUTESTOBJS)
$(LINKER) $(LDFLAGS) $(ALUTESTOBJS) $(LIBS) -o alutest
alutestrun: alutest
-.\alutest < alutesti 2>testerr > testout
diff testout aluokout
diff testerr aluokerr
alulint: $(ALUTESTSRCS)
lint $(LINTFLAGS) $(ALUTESTSRCS) $(LINTLIBS) > alulint
aluinstall : aluneed.t calu.ct calu.ht
cat aluneed.t calu.ct > $(LDIR)\calu.ct
cat aluneed.t calu.ht > $(LDIR)\calu.ht
llutest: $(LLUTESTOBJS)
$(LINKER) $(LDFLAGS) $(LLUTESTOBJS) $(LIBS) -o llutest
llutestrun: llutest
-.\llutest < llutesti > testout 2> testerr
diff testout lluokout
diff testerr lluokerr
llulint: $(LLUTESTSRCS)
lint $(LINTFLAGS) $(LLUTESTSRCS) $(LINTLIBS) > llulint
lluinstall : lluneed.t cllu.ct cllu.ht
cat lluneed.t cllu.ct > $(LDIR)\cllu.ct
cat lluneed.t cllu.ht > $(LDIR)\cllu.ht
install: lluinstall aluinstall
lint : alulint llulint
clean:
rm $(JUNK) $(OBJS) $(TMOUT)
distfiles:
@echo $(DISTFILES) | tr ' ' '\012'
setup:
modmake local ..\make.local $(MAKEFILE)
# Non-standard make rules
depend: $(LLUTMSRCS) $(LLUTMHDRS) $(ALUTMHDRS) $(ALUTMSRCS)
mkmf -I$(IDIR) -f $(MAKEFILE)
alucode.c : alucode.ct calu.ct aluspec.t test.ds aluneed.t
$(TM) test.ds alucode.ct > alucode.c
alucode.h : alucode.ht calu.ht aluspec.t test.ds aluneed.t
$(TM) test.ds alucode.ht > alucode.h
llucode.c : llucode.ct cllu.ct lluspec.t test.ds lluneed.t
$(TM) test.ds llucode.ct > llucode.c
llucode.h : llucode.ht cllu.ht lluspec.t test.ds lluneed.t
$(TM) test.ds llucode.ht > llucode.h
###
alucode.o: alucode.h
alutest.o: alucode.h
llucode.o: llucode.h
llutest.o: llucode.h